package org.example;

import org.example.basic.TrussCommunity;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int k;
        Scanner scanner=new Scanner(System.in);
        k=scanner.nextInt();

        String inputFileName = "./src/main/java/org/example/data/com-amazon.ungraph.txt";
        String outputFileName = "./src/main/java/org/example/data/com-amazon-truss-result.txt";
        String regex="\t";
//        CoreCommunity coreCommunity = new CoreCommunity();
//        coreCommunity.kCoreCommunitySearch(k,inputFileName, outputFileName,regex);
        TrussCommunity trussCommunity = new TrussCommunity();
        trussCommunity.kTrussCommunitySearch(k,inputFileName,outputFileName,regex);

    }
}
